package com.xjk.unsafe;

import sun.misc.Unsafe;

/**
 * Unsafe工具类
 * 用来进行Java中的Unsafe操作
 *
 * @author 许嘉凯 JM032791
 * @date 2024-05-31
 */
public class UnsafeUtil {

  private static final Unsafe UNSAFE = Unsafe.getUnsafe();

  /**
   * 获取Unsafe类
   * @return
   */
  public static Unsafe getUnsafe() {
    return UNSAFE;
  }

}
